'use strict';
module.exports = app => {
  // 物流表
  const {INTEGER, STRING, TEXT} = app.Sequelize;
  const Logistics = app.model.define('s_logistics', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    user_id: {
      type: INTEGER,
      comment: '用户id',
    },
    order_id: {
      type: STRING,
      comment: '订单id',
    },
    content: {
      type: TEXT,
      comment: '物流信息',
    },
  });

  return Logistics;
};
